package com.shen.web.filter;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class MyFilter1 implements Filter {
	
	private static Logger logger = LoggerFactory.getLogger(MyFilter1.class);

	public void destroy() {
		logger.debug(" ----- filter1 destroy --------");
	}

	public void doFilter(ServletRequest request, ServletResponse response,
			FilterChain chain) throws IOException, ServletException {
		logger.debug(" ----- filter1 dofilter start --------");
		chain.doFilter(request, response);
		logger.debug(" ----- filter1 dofilter end --------");
	}

	public void init(FilterConfig filterConfig) throws ServletException {
		logger.debug(" ----- filter1 init --------");
	}


}
